#author by doronlee
import random

count=5
win=0
scissorrockFive = ["剪刀","石头","布"]

while count > 0:
    robot = random.choice(scissorrockFive)
    superman = input("请出拳：")

    if superman == robot:
        print("平局")
    elif superman == "剪刀" and robot == "石头":
        print("你输了")
        count -= 1
    elif superman == "剪刀" and robot == "布":
        print("你赢了")
        win += 1
        count -= 1
    elif superman == "石头" and robot == "布":
        print("你输了")
        count -= 1
    elif superman == "石头" and robot == "剪刀":
        print("你赢了")
        win += 1
        count -= 1
    elif superman == "布" and robot == "剪刀":
        print("你输了")
        count -= 1
    elif superman == "布" and robot == "石头":
        print("你赢了")
        win += 1
        count -= 1
    else:
        print("无效出拳,请输入’剪刀‘、’石头‘或’布‘")

print(f"你赢了{win}局")